Conditions | 1 |
Total Lines | 20 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | function restSubmit(modulename, method, data, error, success) { |
||
2 | var url = '/origini-app/visitor/' + modulename + '/php/index.php'; |
||
3 | |||
4 | // var Newsletter = new Rest(url, '?', function (data) { |
||
5 | // console.error(data); |
||
6 | // }, function (data) { |
||
7 | // console.table(data); |
||
8 | // }); |
||
9 | var RestHandle = new Rest(url, '?', error, success); |
||
|
|||
10 | |||
11 | console.log(this); |
||
12 | |||
13 | delete data.method; |
||
14 | delete data.submit; |
||
15 | |||
16 | console.log(method); |
||
17 | |||
18 | RestHandle.byMethod(method, data); |
||
19 | console.log(data); |
||
20 | } |
||
21 | |||
23 | // restSubmit('auth','PUT',{'id': 1,' name':'tom'}); |
||
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.